package com.zttek.videoShareProject.common.json;

import com.zttek.videoShareProject.modules.model.Abuse;

import java.util.Date;

public class AbuseVO {

    /**
     * 添加举报json对象
     */
    public static class AddAbuse{
        private  Long video_id;
        private Long user_id;
        private Integer reason;

        public Long getVideo_id() {
            return video_id;
        }

        public void setVideo_id(Long video_id) {
            this.video_id = video_id;
        }

        public Long getUser_id() {
            return user_id;
        }

        public void setUser_id(Long user_id) {
            this.user_id = user_id;
        }

        public Integer getReason() {
            return reason;
        }

        public void setReason(Integer reason) {
            this.reason = reason;
        }

        public Abuse getAbuse(){
            Abuse abuse =new Abuse();
            abuse.setReason(reason);
            abuse.setUserId(user_id);
            abuse.setVideoId(video_id);
            abuse.setStatus(0);
            abuse.setCreateDate(new Date());
            return abuse;
        }
    }

}
